home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / turbovis / tvtoyc01.zip / TOYCFG.H < prev    next >
C/C++ Source or Header  |  1994-01-12  |  5KB  |  129 lines

  1. /***************************************************************************
  2.   toyConfig include
  3.   Personal TVToys preferences
  4.   PJB November 3, 1993, Internet mail to d91-pbr@nada.kth.se
  5.   Copyright 1993, All Rights Reserved
  6.   Free source, use at your own risk.
  7.   If modified, please state so if you pass this around.
  8.  
  9.   All defines have been moved to one file which is included by all
  10.   units. Any changes here affect all TVToys units.
  11.  
  12. ***************************************************************************/
  13.  
  14. #if !defined( __TOYCFG_H )
  15. #define __TOYCFG_H
  16.  
  17. /*******************************************************************
  18.   NewMouse draws its own mouse cursor on the screen and avoids
  19.   buggy mouse driver code which makes your mouse unusable in many
  20.   video modes.
  21.   Define UseNewMouse to make TToyApp automatically use NewMouse.
  22.   Default: Not defined     Affects: toyApp, VideoTst
  23. *******************************************************************/
  24. //#define USENEWMOUSE
  25. #undef TOYUSENEWMOUSE
  26.  
  27.  
  28. /*******************************************************************
  29.   Define VesaSupport to make Video recognize Vesa support
  30.   and use Vesa calls to set and get the video mode.
  31.   Default: Defined        Affects: Video, ModeDlg
  32. *******************************************************************/
  33. #define TOYVESASUPPORT
  34. //#undef TOYVESASUPPORT
  35.  
  36.  
  37. /*******************************************************************
  38.   Define Video7Support to make Video recognize Video 7 video
  39.   cards and use Video 7 calls to set and get the video mode.
  40.   Default: Defined        Affects: Video
  41. *******************************************************************/
  42. #define TOYVIDEO7SUPPORT
  43. //#undef TOYVIDEO7SUPPORT
  44.  
  45.  
  46. /*******************************************************************
  47.   Define V7UniVesaKludge ONLY if you want to use an old version of
  48.   UniVesa (4.2 and older) on a Video 7 card.
  49.   Default: Not defined      Affects: Video
  50. *******************************************************************/
  51. //#define V7UNIVESAKLUDGE
  52. #undef TOYV7UNIVESAKLUDGE
  53.  
  54.  
  55. /*******************************************************************
  56.   Define DiskFonts if you want FontDlg.SelectFontDialog to
  57.   search on disk for font files. This is defined by default to
  58.   make VideoTst a more interesting demo. I do not recomm}
  59.   keeping it defined, it's 3K code.
  60.   Default: Defined          Affects: FontDlg, (VideoTst)
  61. *******************************************************************/
  62. //#define TOYDISKFONTS
  63. //#undef TOYDISKFONTS
  64.  
  65.  
  66. /*******************************************************************
  67.   Define ResFonts if you want FontDlg.SelectFontDialog to
  68.   search in a resource file for font files. This is defined by
  69.   default to make ResDemo a more interesting demo.
  70.   Default: Defined          Affects: FontDlg, (ResDemo)
  71. *******************************************************************/
  72. //#define TOYRESFONTS
  73. //#undef TOYRESFONTS
  74.  
  75.  
  76. /*******************************************************************
  77.   Define HelpExtensions to enable the back tracking buffer and
  78.   the cmSwitchToTopic command.
  79.   Default: Defined          Affects: HelpFile
  80. *******************************************************************/
  81. #define TOYHELPEXTENSIONS
  82. //#undef TOYHELPEXTENSIONS
  83.  
  84.  
  85. /*******************************************************************
  86.   Define ExeHelp if you want toyApp to use the ExeStrm unit to
  87.   look in the application's EXE file for the help file.
  88.   ExeHelp currently assumes DOS 3+ compatibility.
  89.   This is not very useful during debugging, so you might want to
  90.   add a DEBUG conditional so that ExeHelp is defined only if DEBUG
  91.   is not.
  92.   Default: Not defined      Affects: toyApp
  93. *******************************************************************/
  94. //#define TOYEXEHELP
  95. //#undef TOYEXEHELP
  96.  
  97.  
  98. /*******************************************************************
  99.   Define Color to get a colorful Info dialog in the VideoTst
  100.   demo program. This might not work if substantial changes has
  101.   been made to Turbo Vision's internal GetColor void in
  102.   VIEWS.PAS. If you haven't changed the library, define it.
  103.   Default: Defined          Affects: VideoTst
  104. *******************************************************************/
  105. //#define TOYCOLOR
  106. //#undef TOYCOLOR
  107.  
  108.  
  109.  
  110. const
  111.   maxVideoModes = 30,
  112.   previewTime   = 12;      // 12/18ths of a second
  113.  
  114. #ifdef PROTECT
  115.   #define Seg0040 biosSeg;
  116.   #define SegB000 monoSeg;
  117.   #define SegB800 colrSeg;
  118. #else
  119.   extern ushort Seg0040;
  120.   extern ushort SegB000;
  121.   extern ushort SegB800;
  122. #endif
  123.  
  124. #define Mem(Seg,Ofs) (*(unsigned char *)MK_FP(Seg,Ofs))
  125. #define MemW(Seg,Ofs) (*(unsigned short *)MK_FP(Seg,Ofs))
  126.  
  127.  
  128. #endif
  129.